cmake_minimum_required(VERSION 3.20)
project(Pinea)

# 设置标准为C++20
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 打包为动态库
add_library(${PROJECT_NAME} SHARED src/Pinea.cpp)

# 指定包含的头文件目录
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/include)
# 指定包含的链接库目录
target_link_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/lib)
# 指定链接的库
target_link_libraries(${PROJECT_NAME} PRIVATE SDL3 SDL3_image SDL3_mixer)
# 预定义宏
target_compile_definitions(${PROJECT_NAME} PRIVATE -DPINEA_BUILD_DLL)